home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 4_5.lha / 4_5 / 4_5c.c < prev    next >
Text File  |  1993-08-08  |  323b  |  21 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. nline int getc(FILE *p)
  6.  
  7.    return --p->_cnt >= 0 ?
  8. *p->_ptr++ & 0377 :
  9. _filbuf(p);
  10.  
  11.  
  12. nline int getchar()
  13.  
  14.    return getc(stdin);
  15.  
  16.  
  17. nline int fileno(FILE *p)
  18.  
  19.    return p->_file;
  20.  
  21.